\hypertarget{class____Cellinfo}{}\section{\+\_\+\+\_\+\+Cellinfo Class Reference}
\label{class____Cellinfo}\index{\+\_\+\+\_\+\+Cellinfo@{\+\_\+\+\_\+\+Cellinfo}}


单个cell内部信息，包括场和粒子两部分  




{\ttfamily \#include $<$cellinf.\+h$>$}



Collaboration diagram for \+\_\+\+\_\+\+Cellinfo\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{df/d65/class____Cellinfo__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Cellinfo_a546a8b1fc05879b04b27363482b3c67e}{}{\bfseries \+\_\+\+\_\+\+Cellinfo} (\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ long $>$ \&\hyperlink{class____Cellinfo_a6b276148c4a5475876a3294ff4a8aac3}{position}, \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&\hyperlink{class____Cellinfo_ae1ea48297c8eeb0d0b622b69555b91cc}{xymin}, \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&\hyperlink{class____Cellinfo_a045a57c5d6ed03790fa00fd3c70aed99}{xymax}, vector$<$ double $>$ \&dens, const int \&\hyperlink{class____Cellinfo_ae2e647cc0788609021806741054739f4}{species})\label{class____Cellinfo_a546a8b1fc05879b04b27363482b3c67e}

\item 
\hypertarget{class____Cellinfo_a6f560eb0cd33f3b60f402e4860b18b68}{}{\bfseries \+\_\+\+\_\+\+Cellinfo} (\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ long $>$ \&\hyperlink{class____Cellinfo_a6b276148c4a5475876a3294ff4a8aac3}{position}, \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&\hyperlink{class____Cellinfo_ae1ea48297c8eeb0d0b622b69555b91cc}{xymin}, \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&\hyperlink{class____Cellinfo_a045a57c5d6ed03790fa00fd3c70aed99}{xymax}, const int \&\hyperlink{class____Cellinfo_ae2e647cc0788609021806741054739f4}{species})\label{class____Cellinfo_a6f560eb0cd33f3b60f402e4860b18b68}

\item 
\hypertarget{class____Cellinfo_a3786082ae71e98cacab79c78da377c52}{}\hyperlink{class____Cellinfo_a3786082ae71e98cacab79c78da377c52}{\+\_\+\+\_\+\+Cellinfo} (const \hyperlink{class____Cellinfo}{\+\_\+\+\_\+\+Cellinfo} \&other)\label{class____Cellinfo_a3786082ae71e98cacab79c78da377c52}

\begin{DoxyCompactList}\small\item\em 使用其它网格数据进行初始化 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a65794c333cfb84953258c831b7900ada}{}\hyperlink{class____Cellinfo}{\+\_\+\+\_\+\+Cellinfo} \hyperlink{class____Cellinfo_a65794c333cfb84953258c831b7900ada}{operator=} (const \hyperlink{class____Cellinfo}{\+\_\+\+\_\+\+Cellinfo} \&other)\label{class____Cellinfo_a65794c333cfb84953258c831b7900ada}

\begin{DoxyCompactList}\small\item\em 可以使用=来直接对网格赋值 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_adc73dee77d28b7feff1bd33340ab6f13}{}void \hyperlink{class____Cellinfo_adc73dee77d28b7feff1bd33340ab6f13}{advance} (const double \&delta\+\_\+t, vector$<$ vector$<$ \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} $>$ $>$ \&templist, const int \&myrank)\label{class____Cellinfo_adc73dee77d28b7feff1bd33340ab6f13}

\begin{DoxyCompactList}\small\item\em 网格粒子推进 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a04d06396a7952ebd806203e2f7a0bab6}{}void \hyperlink{class____Cellinfo_a04d06396a7952ebd806203e2f7a0bab6}{pop} (const int \&sp, const int \&offset)\label{class____Cellinfo_a04d06396a7952ebd806203e2f7a0bab6}

\begin{DoxyCompactList}\small\item\em 网格sp种类例子，偏移offset处粒子，删除 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_aae9b3387c48b44a06bd56b216d65e648}{}void \hyperlink{class____Cellinfo_aae9b3387c48b44a06bd56b216d65e648}{push} (const \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} \&myptcl)\label{class____Cellinfo_aae9b3387c48b44a06bd56b216d65e648}

\begin{DoxyCompactList}\small\item\em 将myptcl加入到当前网格中 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a961aae2afaea184202db96ccc00ce058}{}void \hyperlink{class____Cellinfo_a961aae2afaea184202db96ccc00ce058}{squeeze} ()\label{class____Cellinfo_a961aae2afaea184202db96ccc00ce058}

\begin{DoxyCompactList}\small\item\em 压缩空间 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a918f3b2b2449299d76e15c7999795ec0}{}void \hyperlink{class____Cellinfo_a918f3b2b2449299d76e15c7999795ec0}{weight\+\_\+to\+\_\+grid} ()\label{class____Cellinfo_a918f3b2b2449299d76e15c7999795ec0}

\begin{DoxyCompactList}\small\item\em 将rho和j weight到grid上 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_ad4a8eef8992a524b317eff31ddef91bb}{}\hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \hyperlink{class____Cellinfo_ad4a8eef8992a524b317eff31ddef91bb}{weight\+\_\+field\+\_\+to\+\_\+coords} (const int \&type, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&coords)\label{class____Cellinfo_ad4a8eef8992a524b317eff31ddef91bb}

\begin{DoxyCompactList}\small\item\em weight 场到坐标，粒子推动使用 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_afa173516dc883818b5f28b4141df0a99}{}void \hyperlink{class____Cellinfo_afa173516dc883818b5f28b4141df0a99}{set\+\_\+field} (const \hyperlink{class____Cellfield}{\+\_\+\+\_\+\+Cellfield} \&otherfield)\label{class____Cellinfo_afa173516dc883818b5f28b4141df0a99}

\begin{DoxyCompactList}\small\item\em 设置当前网格的场值 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a5b64652478c1fa30e34757284650d190}{}void \hyperlink{class____Cellinfo_a5b64652478c1fa30e34757284650d190}{init} (const vector$<$ int $>$ \&ppc)\label{class____Cellinfo_a5b64652478c1fa30e34757284650d190}

\begin{DoxyCompactList}\small\item\em 初始化当前网格，假定density已经给定 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a97d20e188893ae4697b4fbc998e274fd}{}void \hyperlink{class____Cellinfo_a97d20e188893ae4697b4fbc998e274fd}{init} (const vector$<$ int $>$ \&ppc, const vector$<$ \hyperlink{structParticles}{Particles} $>$ \&spptcl, const int \&disable\+\_\+em)\label{class____Cellinfo_a97d20e188893ae4697b4fbc998e274fd}

\begin{DoxyCompactList}\small\item\em 初始化sp类粒子，给定ppc和dens \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a42aba71a24b52fb6be9c4b330396f5e0}{}void \hyperlink{class____Cellinfo_a42aba71a24b52fb6be9c4b330396f5e0}{set\+\_\+velocity} (const int \&sp, const \hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \&velocity)\label{class____Cellinfo_a42aba71a24b52fb6be9c4b330396f5e0}

\begin{DoxyCompactList}\small\item\em 设这sp类粒子的速度 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a736d24c4f253f0208e0a3384a9c110e6}{}void \hyperlink{class____Cellinfo_a736d24c4f253f0208e0a3384a9c110e6}{set\+\_\+density} (const vector$<$ double $>$ \&dens)\label{class____Cellinfo_a736d24c4f253f0208e0a3384a9c110e6}

\begin{DoxyCompactList}\small\item\em 设置当前网格的粒子种类密度，dens是数组 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a11ffce60ce673e7a0e22e1414594bf61}{}void \hyperlink{class____Cellinfo_a11ffce60ce673e7a0e22e1414594bf61}{weight\+\_\+field\+\_\+to\+\_\+ptcls} ()\label{class____Cellinfo_a11ffce60ce673e7a0e22e1414594bf61}

\begin{DoxyCompactList}\small\item\em 将场插值到粒子，推动粒子使用 \end{DoxyCompactList}\item 
void \hyperlink{class____Cellinfo_a42c13418d3cded143490659c080a0188}{synchrotron} (const double \&delta\+\_\+t, vector$<$ vector$<$ double $>$ $>$ \&tables1d, vector$<$ vector$<$ vector$<$ double $>$ $>$ $>$ \&tables2d)
\begin{DoxyCompactList}\small\item\em 同步辐射，采用光学深度算法 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a5f1cc5ade2ab3233aa4a9e46fd2be371}{}void \hyperlink{class____Cellinfo_a5f1cc5ade2ab3233aa4a9e46fd2be371}{bremsstrahlung} (const double \&delta\+\_\+t, vector$<$ vector$<$ double $>$ $>$ \&tables1d, vector$<$ vector$<$ vector$<$ double $>$ $>$ $>$ \&tables2d)\label{class____Cellinfo_a5f1cc5ade2ab3233aa4a9e46fd2be371}

\begin{DoxyCompactList}\small\item\em 韧致辐射，采用\+M\+C \end{DoxyCompactList}\item 
void \hyperlink{class____Cellinfo_a4d4be95a72562906687dca11d10a743a}{bw\+\_\+pair} (const double \&delta\+\_\+t, vector$<$ vector$<$ double $>$ $>$ \&tables1d, vector$<$ vector$<$ vector$<$ double $>$ $>$ $>$ \&tables2d)
\begin{DoxyCompactList}\small\item\em 光子光子产生正负电子对\+Breit\+\_\+wheeler过程，采用光深，以后可以修改为与背景温度相关的\+M\+C过程。 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a03d0c7dc9d451cba678d0e6e8cf09f9c}{}void \hyperlink{class____Cellinfo_a03d0c7dc9d451cba678d0e6e8cf09f9c}{bh\+\_\+pair} (const double \&delta\+\_\+t, vector$<$ vector$<$ double $>$ $>$ \&tables1d, vector$<$ vector$<$ vector$<$ double $>$ $>$ $>$ \&tables2d)\label{class____Cellinfo_a03d0c7dc9d451cba678d0e6e8cf09f9c}

\begin{DoxyCompactList}\small\item\em 光子在原子核的库仑场中产生正负电子对，采用\+M\+C \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_acfb53f00e95346df64e345fbe85e26fc}{}\hyperlink{class____Cellinfo_acfb53f00e95346df64e345fbe85e26fc}{$\sim$\+\_\+\+\_\+\+Cellinfo} ()\label{class____Cellinfo_acfb53f00e95346df64e345fbe85e26fc}

\begin{DoxyCompactList}\small\item\em 计算各种粒子的密度(本网格内部) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Cellinfo_a6b276148c4a5475876a3294ff4a8aac3}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ long $>$ \hyperlink{class____Cellinfo_a6b276148c4a5475876a3294ff4a8aac3}{position}\label{class____Cellinfo_a6b276148c4a5475876a3294ff4a8aac3}

\begin{DoxyCompactList}\small\item\em 网格位置 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_ae1ea48297c8eeb0d0b622b69555b91cc}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Cellinfo_ae1ea48297c8eeb0d0b622b69555b91cc}{xymin}\label{class____Cellinfo_ae1ea48297c8eeb0d0b622b69555b91cc}

\begin{DoxyCompactList}\small\item\em 网格左下角坐标 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_a045a57c5d6ed03790fa00fd3c70aed99}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Cellinfo_a045a57c5d6ed03790fa00fd3c70aed99}{xymax}\label{class____Cellinfo_a045a57c5d6ed03790fa00fd3c70aed99}

\begin{DoxyCompactList}\small\item\em 网格右下角坐标 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_aa99bd863d8cab69486628ed89cc7289f}{}vector$<$ \hyperlink{class____Ptclslist}{\+\_\+\+\_\+\+Ptclslist} $>$ \hyperlink{class____Cellinfo_aa99bd863d8cab69486628ed89cc7289f}{plist}\label{class____Cellinfo_aa99bd863d8cab69486628ed89cc7289f}

\begin{DoxyCompactList}\small\item\em 网格中的粒子束 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_ac6a25fdbe94f19a1e593f34f9a477204}{}\hyperlink{class____Cellfield}{\+\_\+\+\_\+\+Cellfield} \hyperlink{class____Cellinfo_ac6a25fdbe94f19a1e593f34f9a477204}{fields}\label{class____Cellinfo_ac6a25fdbe94f19a1e593f34f9a477204}

\begin{DoxyCompactList}\small\item\em 网格中的场 \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_ae2e647cc0788609021806741054739f4}{}int \hyperlink{class____Cellinfo_ae2e647cc0788609021806741054739f4}{species}\label{class____Cellinfo_ae2e647cc0788609021806741054739f4}

\begin{DoxyCompactList}\small\item\em particle species total \end{DoxyCompactList}\item 
vector$<$ double $>$ \hyperlink{class____Cellinfo_ac7356dfe4d6d03d6dfe84f3762ea0286}{density} = \{\}
\item 
\hypertarget{class____Cellinfo_aa77932df280174ca017de22952113717}{}double \hyperlink{class____Cellinfo_aa77932df280174ca017de22952113717}{area}\label{class____Cellinfo_aa77932df280174ca017de22952113717}

\begin{DoxyCompactList}\small\item\em area of this cell \end{DoxyCompactList}\item 
\hypertarget{class____Cellinfo_ae270ced2009255963473c065234962a0}{}int \hyperlink{class____Cellinfo_ae270ced2009255963473c065234962a0}{events\+\_\+types} \mbox{[}5\mbox{]}\label{class____Cellinfo_ae270ced2009255963473c065234962a0}

\begin{DoxyCompactList}\small\item\em 0\+:synchrotron, 1\+:bremsstrahlung, 2\+:bw\+\_\+pair, 3\+:bh\+\_\+pair \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Cellinfo_afa2982f3e0e57134a6222647c21bafee}{}ostream \& \hyperlink{class____Cellinfo_afa2982f3e0e57134a6222647c21bafee}{operator$<$$<$} (ostream \&out, const \hyperlink{class____Cellinfo}{\+\_\+\+\_\+\+Cellinfo} \&other)\label{class____Cellinfo_afa2982f3e0e57134a6222647c21bafee}

\begin{DoxyCompactList}\small\item\em 粒子信息输出重载算符，可以直接输出当前粒子的信息 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
单个cell内部信息，包括场和粒子两部分 

\subsection{Member Function Documentation}
\hypertarget{class____Cellinfo_a4d4be95a72562906687dca11d10a743a}{}\index{\+\_\+\+\_\+\+Cellinfo@{\+\_\+\+\_\+\+Cellinfo}!bw\+\_\+pair@{bw\+\_\+pair}}
\index{bw\+\_\+pair@{bw\+\_\+pair}!\+\_\+\+\_\+\+Cellinfo@{\+\_\+\+\_\+\+Cellinfo}}
\subsubsection[{bw\+\_\+pair}]{\setlength{\rightskip}{0pt plus 5cm}void \+\_\+\+\_\+\+Cellinfo\+::bw\+\_\+pair (
\begin{DoxyParamCaption}
\item[{const double \&}]{delta\+\_\+t, }
\item[{vector$<$ vector$<$ double $>$ $>$ \&}]{tables1d, }
\item[{vector$<$ vector$<$ vector$<$ double $>$ $>$ $>$ \&}]{tables2d}
\end{DoxyParamCaption}
)}\label{class____Cellinfo_a4d4be95a72562906687dca11d10a743a}


光子光子产生正负电子对\+Breit\+\_\+wheeler过程，采用光深，以后可以修改为与背景温度相关的\+M\+C过程。 

　因为会删除粒子因此，必须倒序才能避免跳过粒子，或者对空list操作

产生粒子后这个list 会减小。 \hypertarget{class____Cellinfo_a42c13418d3cded143490659c080a0188}{}\index{\+\_\+\+\_\+\+Cellinfo@{\+\_\+\+\_\+\+Cellinfo}!synchrotron@{synchrotron}}
\index{synchrotron@{synchrotron}!\+\_\+\+\_\+\+Cellinfo@{\+\_\+\+\_\+\+Cellinfo}}
\subsubsection[{synchrotron}]{\setlength{\rightskip}{0pt plus 5cm}void \+\_\+\+\_\+\+Cellinfo\+::synchrotron (
\begin{DoxyParamCaption}
\item[{const double \&}]{delta\+\_\+t, }
\item[{vector$<$ vector$<$ double $>$ $>$ \&}]{tables1d, }
\item[{vector$<$ vector$<$ vector$<$ double $>$ $>$ $>$ \&}]{tables2d}
\end{DoxyParamCaption}
)}\label{class____Cellinfo_a42c13418d3cded143490659c080a0188}


同步辐射，采用光学深度算法 

电子

正电子 

\subsection{Field Documentation}
\hypertarget{class____Cellinfo_ac7356dfe4d6d03d6dfe84f3762ea0286}{}\index{\+\_\+\+\_\+\+Cellinfo@{\+\_\+\+\_\+\+Cellinfo}!density@{density}}
\index{density@{density}!\+\_\+\+\_\+\+Cellinfo@{\+\_\+\+\_\+\+Cellinfo}}
\subsubsection[{density}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$double$>$ \+\_\+\+\_\+\+Cellinfo\+::density = \{\}}\label{class____Cellinfo_ac7356dfe4d6d03d6dfe84f3762ea0286}
粒子种类启用标志 粒子种类密度 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
cellinf.\+h\end{DoxyCompactItemize}
